<include file="Public/side" />

<div class="col-xs-9" role="main">
	<form action='__URL__/index' id="js_search" method="get">
		<ol class="breadcrumb">
			<li class="active">
				<table>
					<tr>
						<td>
							<a href="__URL__/index/status/0"><span class="label <if condition='$status eq 0'>label-default<else/>label-info</if>">全部</span></a> 
							<a href="__URL__/index/status/1"><span class="label <if condition='$status eq 1'>label-default<else/>label-success</if>">正常</span></a>
							<a href="__URL__/index/status/2"><span class="label <if condition='$status eq 2'>label-default<else/>label-warning</if>">回收站</span></a>
						</td>
						<td>
							<input type="text" class="form-control" name="keyword" value="{$keyword}" placeholder="标题" style="float: left;">
						</td>

						<td><button type="submit" class="btn btn-sm btn-primary">搜索</button></td>
						<td colspan="2">
							<span class="nav-addbtn">
								<a href="__URL__/menu_add" class="btn btn-sm btn-success" style="float:right;">添加</a>
							</span>
						</td>
					</tr>
				</table>
			</li>
		</ol>
	</form>
	<div class="table-responsive">
		<table class="table table-striped">
			<thead>
				<tr>
					<th>ID</th>
					<th>标题</th>
					<th>模块名</th>
					<th>控制器名</th>
					<th>方法名</th>
					<th>参数</th>
					<th>介绍</th>
					<th>层级</th>
					<th>上级ID</th>
					<th>PATH</th>
					<th>菜单</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<volist name="list" id="val">
					<if condition="$val.is_show eq 1">
						<tr>
					<else/>
						<tr class="f_gray">
					</if>
						<td>{$val.id}</td>
						<td>
							<if condition="$val.level eq 2">
								--
							<elseif condition="$val.level eq 3"/>
								-- --
							</if>
							{$val.title}
						</td>
						<td>{$val.module_name}</td>
						<td>{$val.controller_name}</td>
						<td>{$val.action_name}</td>
						<td>{$val.param}</td>
						<td>{$val.remark}</td>
						<td>{$val.level}</td>
						<td>{$val.pid}</td>
						<td>{$val.path}</td>
						<td>
							<if condition="$val.is_show eq 1">
								是
							<else/>
								否
							</if>
						</td>
						<td>
							<a href="__URL__/menu_add/id/{$val.id}" class="btn btn-primary btn-xs">编辑</a>
							<if condition="$val.status eq 1">
								<a href="__URL__/menu_delete/id/{$val.id}" class="btn btn btn-warning btn-xs delete_one">删除</a>
							<else />
								<a href="__URL__/menu_reduction/id/{$val.id}" class="btn btn-success btn-xs reduction">还原</a>
								<a href="__URL__/menu_delete_really/id/{$val.id}" class="btn btn-danger btn-xs delete_really">彻底删除</a>
							</if>
						</td>
					</tr>
				
				</volist>
			</tbody>
		</table>
		
		<div class="my_page">
			{$page}
		</div>
	</div>
</div>

<script type="text/javascript">
//var $status = '{$status}';
</script>


<include file="Public/footer" />